package com.caption.mq.entity;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: TODO
 * @author: 码农
 * @date: 2022-01-16 05:43:06
 */
@Data
@NoArgsConstructor
public class MessageDTO {
    private String topic;
    private String tag= "*";
    private String data;
    private String messageId;
    private String msgId;

    public MessageDTO(String topic) {
        this.topic = topic;
    }

    public MessageDTO (String topic, String tag) {
        this.topic = topic;
        this.tag = tag;
    }

}
